MessageSearchListComponent

open class MessageSearchListComponent

This class creates and performs a view corresponding the message search result list area in Sendbird UIKit. since 3.0.0

Constructors

Link copied to clipboard
open fun MessageSearchListComponent()
Constructor that is called when a module is created, supplying parameters that can customize a default View.

Types

Link copied to clipboard
open class Params
A collection of parameters, which can be applied to a default View.

Functions

Link copied to clipboard
open fun getRootView(): View
Returns the view created by onCreateView.
Link copied to clipboard
open fun notifyDataSetChanged(@NonNull messageList: List<BaseMessage>)
Notifies this component that the message search result is changed.
Link copied to clipboard
open fun onCreateView(    @NonNull context: Context,     @NonNull inflater: LayoutInflater,     @NonNull parent: ViewGroup,     @Nullable args: Bundle): View
Called after the component was created to make views.
Link copied to clipboard
protected open fun onItemClicked(    @NonNull view: View,     position: Int,     @NonNull message: BaseMessage)
Called when the item of the message search result is clicked.
Link copied to clipboard
open fun <T : MessageSearchAdapter?> setAdapter(@NonNull adapter: T)
Sets the message search result list adapter to provide child views on demand.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable listener: OnItemClickListener<BaseMessage>)
Register a callback to be invoked when the item of the message search result is clicked.
Link copied to clipboard
open fun setPagedDataLoader(@NonNull pagedDataLoader: OnPagedDataLoader<List<BaseMessage>>)
Sets the paged data loader for message search result list.

Properties

Link copied to clipboard
val params: MessageSearchListComponent.Params